<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><?php echo $this->CFG["com"]["name"]; ?> | Administracija</title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	
	<link rel="shortcut icon" type="image/ico" href="/image/favicon.ico" />

	<link rel="stylesheet" type="text/css" href="/stylesheet/jquery/style.css" />
	<link rel="stylesheet" type="text/css" href="/stylesheet/tree.css" />
	<link rel="stylesheet" type="text/css" href="/stylesheet/admin.css" />

	<script type="text/javascript" src="/javascript/jquery-1.6.1.min.js"></script>
	<script type="text/javascript" src="/javascript/jquery-ui-1.8.9.custom.min.js"></script>
	<script type="text/javascript" src="/javascript/default.input.text.js"></script>
	<script type="text/javascript" src="/javascript/tree.js"></script>
	<script type="text/javascript" src="/javascript/admin.js"></script>

	<script type="text/javascript">
		var CURRENT_LANG = "<?php echo $_SESSION["language"]; ?>";
	</script>
</head>

<body>
<? if(!$_SESSION["user"]): ?>
	<?= $this->fetch("admin/login"); ?>
<? else: ?>
	<?= $this->flashMessage(true); ?>
	<div id="toolbar">
		<a href="/admin"><img src="/image/mobili-nuovi.png" id="logo" /></a>
		<h2>ADMINISTRACIJA</h2>
		<center>
			| <a href="/">SAJT</a> |
			<a href="/admin/logout">IZLAZ</a> |
		</center>
		<ul>
			<? foreach($menu as $item): ?>
			<li>
				<? if($item["active"]): ?>
					<strong><?= $item["label"]; ?></strong>
				<? else: ?>
					<a href="<?= $item["href"]; ?>"><?= $item["label"]; ?></a>
				<? endif; ?>
			</li>
			<? endforeach; ?>
		</ul>
	</div>

	<div id="content"><?= $__content ?></div>
<? endif; ?>
</body>
</html>